package ddz;

import java.util.Arrays;

public class test1 {
    public static void main(String[] args) {
        Pkp pkp =new Pkp(13,PkpStyle.fangpian);
       // pkp.setRealvalue(13); //注意约束拍面值和显示值的对应关系,setRealvalue值确定后,  setShowvlaue值不能被修改
       // pkp.setShowvlaue("k");//pkp.setStyle("红桃");
        Pkp pkp2 =new Pkp(11,PkpStyle.heitao);
        Pkp pkp3 =new Pkp(17,PkpStyle.meihua);
        System.out.println(pkp); //打印扑克牌
        System.out.println(pkp2); //打印扑克牌
        System.out.println(pkp3); //打印扑克牌

        Player p1 = new Player("慈善赌王卢本伟");
        Player p2 = new Player("赌神周润发");
        Player p3 = new Player("周星驰");




        Player [] players = new Player[]{p1,p2,p3};
        Game game = new Game(players);
        System.out.println(Arrays.toString(game.getInitPkp()));

        game.start();
        System.out.println(p1);
        System.out.println(p2);
        System.out.println(p3);
    }
}
